.class public Lcom/xingbook/ui/overclass/HVScrollView;
.super Landroid/widget/FrameLayout;


# instance fields
.field private a:F

.field private b:F

.field private c:J

.field private final d:Landroid/graphics/Rect;

.field private e:Landroid/widget/Scroller;

.field private f:Z

.field private g:F

.field private h:F

.field private i:Z

.field private j:Landroid/view/View;

.field private k:Z

.field private l:Landroid/view/VelocityTracker;

.field private m:Z

.field private n:Z

.field private o:I

.field private p:I

.field private q:I

.field private r:I

.field private s:Z


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .locals 1

    const/4 v0, 0x0

    invoke-direct {p0, p1, v0}, Lcom/xingbook/ui/overclass/HVScrollView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
    .locals 2

    const/high16 v0, -0x4080

    const/4 v1, 0x1

    invoke-direct {p0, p1, p2}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    iput v0, p0, Lcom/xingbook/ui/overclass/HVScrollView;->a:F

    iput v0, p0, Lcom/xingbook/ui/overclass/HVScrollView;->b:F

    new-instance v0, Landroid/graphics/Rect;

    invoke-direct {v0}, Landroid/graphics/Rect;-><init>()V

    iput-object v0, p0, Lcom/xingbook/ui/overclass/HVScrollView;->d:Landroid/graphics/Rect;

    iput-boolean v1, p0, Lcom/xingbook/ui/overclass/HVScrollView;->i:Z

    const/4 v0, 0x0

    iput-object v0, p0, Lcom/xingbook/ui/overclass/HVScrollView;->j:Landroid/view/View;

    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/xingbook/ui/overclass/HVScrollView;->k:Z

    iput-boolean v1, p0, Lcom/xingbook/ui/overclass/HVScrollView;->n:Z

    const/4 v0, -0x1

    iput v0, p0, Lcom/xingbook/ui/overclass/HVScrollView;->r:I

    iput-boolean v1, p0, Lcom/xingbook/ui/overclass/HVScrollView;->s:Z

    invoke-direct {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->a()V

    return-void
.end method

.method private a(ZII)Landroid/view/View;
    .locals 11

    const/4 v0, 0x2

    invoke-virtual {p0, v0}, Lcom/xingbook/ui/overclass/HVScrollView;->getFocusables(I)Ljava/util/ArrayList;

    move-result-object v6

    const/4 v3, 0x0

    const/4 v2, 0x0

    invoke-interface {v6}, Ljava/util/List;->size()I

    move-result v7

    const/4 v0, 0x0

    move v5, v0

    :goto_0
    if-lt v5, v7, :cond_0

    return-object v3

    :cond_0
    invoke-interface {v6, v5}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/view/View;

    invoke-virtual {v0}, Landroid/view/View;->getTop()I

    move-result v4

    invoke-virtual {v0}, Landroid/view/View;->getBottom()I

    move-result v8

    if-ge p2, v8, :cond_8

    if-ge v4, p3, :cond_8

    if-ge p2, v4, :cond_1

    if-ge v8, p3, :cond_1

    const/4 v1, 0x1

    :goto_1
    if-nez v3, :cond_2

    move v10, v1

    move-object v1, v0

    move v0, v10

    :goto_2
    add-int/lit8 v2, v5, 0x1

    move v5, v2

    move-object v3, v1

    move v2, v0

    goto :goto_0

    :cond_1
    const/4 v1, 0x0

    goto :goto_1

    :cond_2
    if-eqz p1, :cond_3

    invoke-virtual {v3}, Landroid/view/View;->getTop()I

    move-result v9

    if-lt v4, v9, :cond_5

    :cond_3
    if-nez p1, :cond_4

    invoke-virtual {v3}, Landroid/view/View;->getBottom()I

    move-result v4

    if-gt v8, v4, :cond_5

    :cond_4
    const/4 v4, 0x0

    :goto_3
    if-eqz v2, :cond_6

    if-eqz v1, :cond_8

    if-eqz v4, :cond_8

    move-object v1, v0

    move v0, v2

    goto :goto_2

    :cond_5
    const/4 v4, 0x1

    goto :goto_3

    :cond_6
    if-eqz v1, :cond_7

    const/4 v1, 0x1

    move v10, v1

    move-object v1, v0

    move v0, v10

    goto :goto_2

    :cond_7
    if-eqz v4, :cond_8

    move-object v1, v0

    move v0, v2

    goto :goto_2

    :cond_8
    move v0, v2

    move-object v1, v3

    goto :goto_2
.end method

.method private a()V
    .locals 2

    new-instance v0, Landroid/widget/Scroller;

    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-direct {v0, v1}, Landroid/widget/Scroller;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/xingbook/ui/overclass/HVScrollView;->e:Landroid/widget/Scroller;

    const/4 v0, 0x1

    invoke-virtual {p0, v0}, Lcom/xingbook/ui/overclass/HVScrollView;->setFocusable(Z)V

    const/high16 v0, 0x4

    invoke-virtual {p0, v0}, Lcom/xingbook/ui/overclass/HVScrollView;->setDescendantFocusability(I)V

    const/4 v0, 0x0

    invoke-virtual {p0, v0}, Lcom/xingbook/ui/overclass/HVScrollView;->setWillNotDraw(Z)V

    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->getContext()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Landroid/view/ViewConfiguration;->get(Landroid/content/Context;)Landroid/view/ViewConfiguration;

    move-result-object v0

    invoke-virtual {v0}, Landroid/view/ViewConfiguration;->getScaledTouchSlop()I

    move-result v1

    iput v1, p0, Lcom/xingbook/ui/overclass/HVScrollView;->o:I

    invoke-virtual {v0}, Landroid/view/ViewConfiguration;->getScaledMinimumFlingVelocity()I

    move-result v1

    iput v1, p0, Lcom/xingbook/ui/overclass/HVScrollView;->p:I

    invoke-virtual {v0}, Landroid/view/ViewConfiguration;->getScaledMaximumFlingVelocity()I

    move-result v0

    iput v0, p0, Lcom/xingbook/ui/overclass/HVScrollView;->q:I

    return-void
.end method

.method private a(Landroid/view/MotionEvent;)V
    .locals 3

    invoke-virtual {p1}, Landroid/view/MotionEvent;->getAction()I

    move-result v0

    const v1, 0xff00

    and-int/2addr v0, v1

    shr-int/lit8 v0, v0, 0x8

    invoke-virtual {p1, v0}, Landroid/view/MotionEvent;->getPointerId(I)I

    move-result v1

    iget v2, p0, Lcom/xingbook/ui/overclass/HVScrollView;->r:I

    if-ne v1, v2, :cond_0

    if-nez v0, :cond_1

    const/4 v0, 0x1

    :goto_0
    invoke-virtual {p1, v0}, Landroid/view/MotionEvent;->getX(I)F

    move-result v1

    iput v1, p0, Lcom/xingbook/ui/overclass/HVScrollView;->h:F

    invoke-virtual {p1, v0}, Landroid/view/MotionEvent;->getY(I)F

    move-result v1

    iput v1, p0, Lcom/xingbook/ui/overclass/HVScrollView;->g:F

    invoke-virtual {p1, v0}, Landroid/view/MotionEvent;->getPointerId(I)I

    move-result v0

    iput v0, p0, Lcom/xingbook/ui/overclass/HVScrollView;->r:I

    iget-object v0, p0, Lcom/xingbook/ui/overclass/HVScrollView;->l:Landroid/view/VelocityTracker;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/ui/overclass/HVScrollView;->l:Landroid/view/VelocityTracker;

    invoke-virtual {v0}, Landroid/view/VelocityTracker;->clear()V

    :cond_0
    return-void

    :cond_1
    const/4 v0, 0x0

    goto :goto_0
.end method

.method private a(III)Z
    .locals 6

    const/4 v1, 0x1

    const/4 v2, 0x0

    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->getHeight()I

    move-result v0

    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->getScrollY()I

    move-result v4

    add-int v5, v4, v0

    const/16 v0, 0x21

    if-ne p1, v0, :cond_2

    move v0, v1

    :goto_0
    invoke-direct {p0, v0, p2, p3}, Lcom/xingbook/ui/overclass/HVScrollView;->a(ZII)Landroid/view/View;

    move-result-object v3

    if-nez v3, :cond_0

    move-object v3, p0

    :cond_0
    if-lt p2, v4, :cond_3

    if-gt p3, v5, :cond_3

    move v0, v2

    :goto_1
    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->findFocus()Landroid/view/View;

    move-result-object v4

    if-eq v3, v4, :cond_1

    invoke-virtual {v3, p1}, Landroid/view/View;->requestFocus(I)Z

    move-result v3

    if-eqz v3, :cond_1

    iput-boolean v1, p0, Lcom/xingbook/ui/overclass/HVScrollView;->f:Z

    iput-boolean v2, p0, Lcom/xingbook/ui/overclass/HVScrollView;->f:Z

    :cond_1
    return v0

    :cond_2
    move v0, v2

    goto :goto_0

    :cond_3
    if-eqz v0, :cond_4

    sub-int v0, p2, v4

    :goto_2
    invoke-direct {p0, v0}, Lcom/xingbook/ui/overclass/HVScrollView;->e(I)V

    move v0, v1

    goto :goto_1

    :cond_4
    sub-int v0, p3, v5

    goto :goto_2
.end method

.method private a(Landroid/graphics/Rect;Z)Z
    .locals 3

    invoke-virtual {p0, p1}, Lcom/xingbook/ui/overclass/HVScrollView;->a(Landroid/graphics/Rect;)I

    move-result v1

    invoke-virtual {p0, p1}, Lcom/xingbook/ui/overclass/HVScrollView;->b(Landroid/graphics/Rect;)I

    move-result v2

    if-nez v2, :cond_1

    if-nez v1, :cond_1

    const/4 v0, 0x0

    :goto_0
    if-eqz v0, :cond_0

    if-eqz p2, :cond_2

    invoke-virtual {p0, v2, v1}, Lcom/xingbook/ui/overclass/HVScrollView;->scrollBy(II)V

    :cond_0
    :goto_1
    return v0

    :cond_1
    const/4 v0, 0x1

    goto :goto_0

    :cond_2
    invoke-virtual {p0, v2, v1}, Lcom/xingbook/ui/overclass/HVScrollView;->a(II)V

    goto :goto_1
.end method

.method private a(Landroid/view/View;)Z
    .locals 2

    const/4 v0, 0x0

    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->getHeight()I

    move-result v1

    invoke-direct {p0, p1, v0, v1}, Lcom/xingbook/ui/overclass/HVScrollView;->a(Landroid/view/View;II)Z

    move-result v1

    if-eqz v1, :cond_0

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x1

    goto :goto_0
.end method

.method private a(Landroid/view/View;I)Z
    .locals 3

    iget-object v0, p0, Lcom/xingbook/ui/overclass/HVScrollView;->d:Landroid/graphics/Rect;

    invoke-virtual {p1, v0}, Landroid/view/View;->getDrawingRect(Landroid/graphics/Rect;)V

    iget-object v0, p0, Lcom/xingbook/ui/overclass/HVScrollView;->d:Landroid/graphics/Rect;

    invoke-virtual {p0, p1, v0}, Lcom/xingbook/ui/overclass/HVScrollView;->offsetDescendantRectToMyCoords(Landroid/view/View;Landroid/graphics/Rect;)V

    iget-object v0, p0, Lcom/xingbook/ui/overclass/HVScrollView;->d:Landroid/graphics/Rect;

    iget v0, v0, Landroid/graphics/Rect;->right:I

    add-int/2addr v0, p2

    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->getScrollX()I

    move-result v1

    if-lt v0, v1, :cond_0

    iget-object v0, p0, Lcom/xingbook/ui/overclass/HVScrollView;->d:Landroid/graphics/Rect;

    iget v0, v0, Landroid/graphics/Rect;->left:I

    sub-int/2addr v0, p2

    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->getScrollX()I

    move-result v1

    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->getWidth()I

    move-result v2

    add-int/2addr v1, v2

    if-gt v0, v1, :cond_0

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method private a(Landroid/view/View;II)Z
    .locals 2

    iget-object v0, p0, Lcom/xingbook/ui/overclass/HVScrollView;->d:Landroid/graphics/Rect;

    invoke-virtual {p1, v0}, Landroid/view/View;->getDrawingRect(Landroid/graphics/Rect;)V

    iget-object v0, p0, Lcom/xingbook/ui/overclass/HVScrollView;->d:Landroid/graphics/Rect;

    invoke-virtual {p0, p1, v0}, Lcom/xingbook/ui/overclass/HVScrollView;->offsetDescendantRectToMyCoords(Landroid/view/View;Landroid/graphics/Rect;)V

    iget-object v0, p0, Lcom/xingbook/ui/overclass/HVScrollView;->d:Landroid/graphics/Rect;

    iget v0, v0, Landroid/graphics/Rect;->bottom:I

    add-int/2addr v0, p2

    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->getScrollY()I

    move-result v1

    if-lt v0, v1, :cond_0

    iget-object v0, p0, Lcom/xingbook/ui/overclass/HVScrollView;->d:Landroid/graphics/Rect;

    iget v0, v0, Landroid/graphics/Rect;->top:I

    sub-int/2addr v0, p2

    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->getScrollY()I

    move-result v1

    add-int/2addr v1, p3

    if-gt v0, v1, :cond_0

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method private a(Landroid/view/View;Landroid/view/View;)Z
    .locals 3

    const/4 v1, 0x1

    if-ne p1, p2, :cond_0

    move v0, v1

    :goto_0
    return v0

    :cond_0
    invoke-virtual {p1}, Landroid/view/View;->getParent()Landroid/view/ViewParent;

    move-result-object v0

    instance-of v2, v0, Landroid/view/ViewGroup;

    if-eqz v2, :cond_1

    check-cast v0, Landroid/view/View;

    invoke-direct {p0, v0, p2}, Lcom/xingbook/ui/overclass/HVScrollView;->a(Landroid/view/View;Landroid/view/View;)Z

    move-result v0

    if-eqz v0, :cond_1

    move v0, v1

    goto :goto_0

    :cond_1
    const/4 v0, 0x0

    goto :goto_0
.end method

.method private b(ZII)Landroid/view/View;
    .locals 11

    const/4 v0, 0x2

    invoke-virtual {p0, v0}, Lcom/xingbook/ui/overclass/HVScrollView;->getFocusables(I)Ljava/util/ArrayList;

    move-result-object v6

    const/4 v3, 0x0

    const/4 v2, 0x0

    invoke-interface {v6}, Ljava/util/List;->size()I

    move-result v7

    const/4 v0, 0x0

    move v5, v0

    :goto_0
    if-lt v5, v7, :cond_0

    return-object v3

    :cond_0
    invoke-interface {v6, v5}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/view/View;

    invoke-virtual {v0}, Landroid/view/View;->getLeft()I

    move-result v4

    invoke-virtual {v0}, Landroid/view/View;->getRight()I

    move-result v8

    if-ge p2, v8, :cond_8

    if-ge v4, p3, :cond_8

    if-ge p2, v4, :cond_1

    if-ge v8, p3, :cond_1

    const/4 v1, 0x1

    :goto_1
    if-nez v3, :cond_2

    move v10, v1

    move-object v1, v0

    move v0, v10

    :goto_2
    add-int/lit8 v2, v5, 0x1

    move v5, v2

    move-object v3, v1

    move v2, v0

    goto :goto_0

    :cond_1
    const/4 v1, 0x0

    goto :goto_1

    :cond_2
    if-eqz p1, :cond_3

    invoke-virtual {v3}, Landroid/view/View;->getLeft()I

    move-result v9

    if-lt v4, v9, :cond_5

    :cond_3
    if-nez p1, :cond_4

    invoke-virtual {v3}, Landroid/view/View;->getRight()I

    move-result v4

    if-gt v8, v4, :cond_5

    :cond_4
    const/4 v4, 0x0

    :goto_3
    if-eqz v2, :cond_6

    if-eqz v1, :cond_8

    if-eqz v4, :cond_8

    move-object v1, v0

    move v0, v2

    goto :goto_2

    :cond_5
    const/4 v4, 0x1

    goto :goto_3

    :cond_6
    if-eqz v1, :cond_7

    const/4 v1, 0x1

    move v10, v1

    move-object v1, v0

    move v0, v10

    goto :goto_2

    :cond_7
    if-eqz v4, :cond_8

    move-object v1, v0

    move v0, v2

    goto :goto_2

    :cond_8
    move v0, v2

    move-object v1, v3

    goto :goto_2
.end method

.method private b()Z
    .locals 4

    const/4 v0, 0x0

    invoke-virtual {p0, v0}, Lcom/xingbook/ui/overclass/HVScrollView;->getChildAt(I)Landroid/view/View;

    move-result-object v1

    if-eqz v1, :cond_0

    invoke-virtual {v1}, Landroid/view/View;->getHeight()I

    move-result v1

    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->getHeight()I

    move-result v2

    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->getPaddingTop()I

    move-result v3

    add-int/2addr v1, v3

    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->getPaddingBottom()I

    move-result v3

    add-int/2addr v1, v3

    if-ge v2, v1, :cond_0

    const/4 v0, 0x1

    :cond_0
    return v0
.end method

.method private b(III)Z
    .locals 6

    const/4 v1, 0x1

    const/4 v2, 0x0

    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->getWidth()I

    move-result v0

    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->getScrollX()I

    move-result v4

    add-int v5, v4, v0

    const/16 v0, 0x11

    if-ne p1, v0, :cond_2

    move v0, v1

    :goto_0
    invoke-direct {p0, v0, p2, p3}, Lcom/xingbook/ui/overclass/HVScrollView;->b(ZII)Landroid/view/View;

    move-result-object v3

    if-nez v3, :cond_0

    move-object v3, p0

    :cond_0
    if-lt p2, v4, :cond_3

    if-gt p3, v5, :cond_3

    move v0, v2

    :goto_1
    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->findFocus()Landroid/view/View;

    move-result-object v4

    if-eq v3, v4, :cond_1

    invoke-virtual {v3, p1}, Landroid/view/View;->requestFocus(I)Z

    move-result v3

    if-eqz v3, :cond_1

    iput-boolean v1, p0, Lcom/xingbook/ui/overclass/HVScrollView;->f:Z

    iput-boolean v2, p0, Lcom/xingbook/ui/overclass/HVScrollView;->f:Z

    :cond_1
    return v0

    :cond_2
    move v0, v2

    goto :goto_0

    :cond_3
    if-eqz v0, :cond_4

    sub-int v0, p2, v4

    :goto_2
    invoke-direct {p0, v0}, Lcom/xingbook/ui/overclass/HVScrollView;->f(I)V

    move v0, v1

    goto :goto_1

    :cond_4
    sub-int v0, p3, v5

    goto :goto_2
.end method

.method private b(Landroid/view/View;)Z
    .locals 2

    const/4 v0, 0x0

    invoke-direct {p0, p1, v0}, Lcom/xingbook/ui/overclass/HVScrollView;->a(Landroid/view/View;I)Z

    move-result v1

    if-eqz v1, :cond_0

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x1

    goto :goto_0
.end method

.method private c(III)I
    .locals 1

    if-ge p2, p3, :cond_0

    if-gez p1, :cond_2

    :cond_0
    const/4 p1, 0x0

    :cond_1
    :goto_0
    return p1

    :cond_2
    add-int v0, p2, p1

    if-le v0, p3, :cond_1

    sub-int p1, p3, p2

    goto :goto_0
.end method

.method private c(Landroid/view/View;)V
    .locals 2

    iget-object v0, p0, Lcom/xingbook/ui/overclass/HVScrollView;->d:Landroid/graphics/Rect;

    invoke-virtual {p1, v0}, Landroid/view/View;->getDrawingRect(Landroid/graphics/Rect;)V

    iget-object v0, p0, Lcom/xingbook/ui/overclass/HVScrollView;->d:Landroid/graphics/Rect;

    invoke-virtual {p0, p1, v0}, Lcom/xingbook/ui/overclass/HVScrollView;->offsetDescendantRectToMyCoords(Landroid/view/View;Landroid/graphics/Rect;)V

    iget-object v0, p0, Lcom/xingbook/ui/overclass/HVScrollView;->d:Landroid/graphics/Rect;

    invoke-virtual {p0, v0}, Lcom/xingbook/ui/overclass/HVScrollView;->a(Landroid/graphics/Rect;)I

    move-result v0

    iget-object v1, p0, Lcom/xingbook/ui/overclass/HVScrollView;->d:Landroid/graphics/Rect;

    invoke-virtual {p0, v1}, Lcom/xingbook/ui/overclass/HVScrollView;->b(Landroid/graphics/Rect;)I

    move-result v1

    if-nez v1, :cond_0

    if-eqz v0, :cond_1

    :cond_0
    invoke-virtual {p0, v1, v0}, Lcom/xingbook/ui/overclass/HVScrollView;->scrollBy(II)V

    :cond_1
    return-void
.end method

.method private c()Z
    .locals 4

    const/4 v0, 0x0

    invoke-virtual {p0, v0}, Lcom/xingbook/ui/overclass/HVScrollView;->getChildAt(I)Landroid/view/View;

    move-result-object v1

    if-eqz v1, :cond_0

    invoke-virtual {v1}, Landroid/view/View;->getWidth()I

    move-result v1

    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->getWidth()I

    move-result v2

    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->getPaddingLeft()I

    move-result v3

    add-int/2addr v1, v3

    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->getPaddingRight()I

    move-result v3

    add-int/2addr v1, v3

    if-ge v2, v1, :cond_0

    const/4 v0, 0x1

    :cond_0
    return v0
.end method

.method private c(II)Z
    .locals 5

    const/4 v0, 0x0

    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->getChildCount()I

    move-result v1

    if-lez v1, :cond_0

    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->getScrollX()I

    move-result v1

    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->getScrollY()I

    move-result v2

    invoke-virtual {p0, v0}, Lcom/xingbook/ui/overclass/HVScrollView;->getChildAt(I)Landroid/view/View;

    move-result-object v3

    invoke-virtual {v3}, Landroid/view/View;->getTop()I

    move-result v4

    sub-int/2addr v4, v2

    if-lt p2, v4, :cond_0

    invoke-virtual {v3}, Landroid/view/View;->getBottom()I

    move-result v4

    sub-int v2, v4, v2

    if-ge p2, v2, :cond_0

    invoke-virtual {v3}, Landroid/view/View;->getLeft()I

    move-result v2

    sub-int/2addr v2, v1

    if-lt p1, v2, :cond_0

    invoke-virtual {v3}, Landroid/view/View;->getRight()I

    move-result v2

    sub-int v1, v2, v1

    if-lt p1, v1, :cond_1

    :cond_0
    :goto_0
    return v0

    :cond_1
    const/4 v0, 0x1

    goto :goto_0
.end method

.method private e(I)V
    .locals 2

    const/4 v1, 0x0

    if-eqz p1, :cond_0

    iget-boolean v0, p0, Lcom/xingbook/ui/overclass/HVScrollView;->n:Z

    if-eqz v0, :cond_1

    invoke-virtual {p0, v1, p1}, Lcom/xingbook/ui/overclass/HVScrollView;->a(II)V

    :cond_0
    :goto_0
    return-void

    :cond_1
    invoke-virtual {p0, v1, p1}, Lcom/xingbook/ui/overclass/HVScrollView;->scrollBy(II)V

    goto :goto_0
.end method

.method private f(I)V
    .locals 2

    const/4 v1, 0x0

    if-eqz p1, :cond_0

    iget-boolean v0, p0, Lcom/xingbook/ui/overclass/HVScrollView;->n:Z

    if-eqz v0, :cond_1

    invoke-virtual {p0, p1, v1}, Lcom/xingbook/ui/overclass/HVScrollView;->a(II)V

    :cond_0
    :goto_0
    return-void

    :cond_1
    invoke-virtual {p0, p1, v1}, Lcom/xingbook/ui/overclass/HVScrollView;->scrollBy(II)V

    goto :goto_0
.end method


# virtual methods
.method protected a(Landroid/graphics/Rect;)I
    .locals 7

    const/4 v2, 0x0

    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->getChildCount()I

    move-result v0

    if-nez v0, :cond_0

    :goto_0
    return v2

    :cond_0
    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->getHeight()I

    move-result v3

    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->getScrollY()I

    move-result v0

    add-int v1, v0, v3

    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->getVerticalFadingEdgeLength()I

    move-result v4

    iget v5, p1, Landroid/graphics/Rect;->top:I

    if-lez v5, :cond_1

    add-int/2addr v0, v4

    :cond_1
    iget v5, p1, Landroid/graphics/Rect;->bottom:I

    invoke-virtual {p0, v2}, Lcom/xingbook/ui/overclass/HVScrollView;->getChildAt(I)Landroid/view/View;

    move-result-object v6

    invoke-virtual {v6}, Landroid/view/View;->getHeight()I

    move-result v6

    if-ge v5, v6, :cond_2

    sub-int/2addr v1, v4

    :cond_2
    iget v4, p1, Landroid/graphics/Rect;->bottom:I

    if-le v4, v1, :cond_4

    iget v4, p1, Landroid/graphics/Rect;->top:I

    if-le v4, v0, :cond_4

    invoke-virtual {p1}, Landroid/graphics/Rect;->height()I

    move-result v4

    if-le v4, v3, :cond_3

    iget v3, p1, Landroid/graphics/Rect;->top:I

    sub-int v0, v3, v0

    add-int/2addr v0, v2

    :goto_1
    invoke-virtual {p0, v2}, Lcom/xingbook/ui/overclass/HVScrollView;->getChildAt(I)Landroid/view/View;

    move-result-object v2

    invoke-virtual {v2}, Landroid/view/View;->getBottom()I

    move-result v2

    sub-int v1, v2, v1

    invoke-static {v0, v1}, Ljava/lang/Math;->min(II)I

    move-result v0

    :goto_2
    move v2, v0

    goto :goto_0

    :cond_3
    iget v0, p1, Landroid/graphics/Rect;->bottom:I

    sub-int/2addr v0, v1

    add-int/2addr v0, v2

    goto :goto_1

    :cond_4
    iget v4, p1, Landroid/graphics/Rect;->top:I

    if-ge v4, v0, :cond_6

    iget v4, p1, Landroid/graphics/Rect;->bottom:I

    if-ge v4, v1, :cond_6

    invoke-virtual {p1}, Landroid/graphics/Rect;->height()I

    move-result v4

    if-le v4, v3, :cond_5

    iget v0, p1, Landroid/graphics/Rect;->bottom:I

    sub-int v0, v1, v0

    sub-int v0, v2, v0

    :goto_3
    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->getScrollY()I

    move-result v1

    neg-int v1, v1

    invoke-static {v0, v1}, Ljava/lang/Math;->max(II)I

    move-result v0

    goto :goto_2

    :cond_5
    iget v1, p1, Landroid/graphics/Rect;->top:I

    sub-int/2addr v0, v1

    sub-int v0, v2, v0

    goto :goto_3

    :cond_6
    move v0, v2

    goto :goto_2
.end method

.method public a(II)V
    .locals 6

    const/4 v5, 0x0

    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->getChildCount()I

    move-result v0

    if-nez v0, :cond_0

    :goto_0
    return-void

    :cond_0
    invoke-static {}, Landroid/view/animation/AnimationUtils;->currentAnimationTimeMillis()J

    move-result-wide v0

    iget-wide v2, p0, Lcom/xingbook/ui/overclass/HVScrollView;->c:J

    sub-long/2addr v0, v2

    const-wide/16 v2, 0xfa

    cmp-long v0, v0, v2

    if-lez v0, :cond_1

    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->getHeight()I

    move-result v0

    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->getPaddingBottom()I

    move-result v1

    sub-int/2addr v0, v1

    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->getPaddingTop()I

    move-result v1

    sub-int/2addr v0, v1

    invoke-virtual {p0, v5}, Lcom/xingbook/ui/overclass/HVScrollView;->getChildAt(I)Landroid/view/View;

    move-result-object v1

    invoke-virtual {v1}, Landroid/view/View;->getHeight()I

    move-result v1

    sub-int v0, v1, v0

    invoke-static {v5, v0}, Ljava/lang/Math;->max(II)I

    move-result v0

    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->getScrollY()I

    move-result v1

    add-int v2, v1, p2

    invoke-static {v2, v0}, Ljava/lang/Math;->min(II)I

    move-result v0

    invoke-static {v5, v0}, Ljava/lang/Math;->max(II)I

    move-result v0

    sub-int/2addr v0, v1

    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->getWidth()I

    move-result v2

    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->getPaddingRight()I

    move-result v3

    sub-int/2addr v2, v3

    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->getPaddingLeft()I

    move-result v3

    sub-int/2addr v2, v3

    invoke-virtual {p0, v5}, Lcom/xingbook/ui/overclass/HVScrollView;->getChildAt(I)Landroid/view/View;

    move-result-object v3

    invoke-virtual {v3}, Landroid/view/View;->getWidth()I

    move-result v3

    sub-int v2, v3, v2

    invoke-static {v5, v2}, Ljava/lang/Math;->max(II)I

    move-result v2

    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->getScrollX()I

    move-result v3

    add-int v4, v3, p1

    invoke-static {v4, v2}, Ljava/lang/Math;->min(II)I

    move-result v2

    invoke-static {v5, v2}, Ljava/lang/Math;->max(II)I

    move-result v2

    sub-int/2addr v2, v3

    iget-object v4, p0, Lcom/xingbook/ui/overclass/HVScrollView;->e:Landroid/widget/Scroller;

    invoke-virtual {v4, v3, v1, v2, v0}, Landroid/widget/Scroller;->startScroll(IIII)V

    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->invalidate()V

    :goto_1
    invoke-static {}, Landroid/view/animation/AnimationUtils;->currentAnimationTimeMillis()J

    move-result-wide v0

    iput-wide v0, p0, Lcom/xingbook/ui/overclass/HVScrollView;->c:J

    goto :goto_0

    :cond_1
    iget-object v0, p0, Lcom/xingbook/ui/overclass/HVScrollView;->e:Landroid/widget/Scroller;

    invoke-virtual {v0}, Landroid/widget/Scroller;->isFinished()Z

    move-result v0

    if-nez v0, :cond_2

    iget-object v0, p0, Lcom/xingbook/ui/overclass/HVScrollView;->e:Landroid/widget/Scroller;

    invoke-virtual {v0}, Landroid/widget/Scroller;->abortAnimation()V

    :cond_2
    invoke-virtual {p0, p1, p2}, Lcom/xingbook/ui/overclass/HVScrollView;->scrollBy(II)V

    goto :goto_1
.end method

.method public a(I)Z
    .locals 4

    const/4 v1, 0x0

    const/16 v0, 0x82

    if-ne p1, v0, :cond_1

    const/4 v0, 0x1

    :goto_0
    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->getHeight()I

    move-result v2

    iget-object v3, p0, Lcom/xingbook/ui/overclass/HVScrollView;->d:Landroid/graphics/Rect;

    iput v1, v3, Landroid/graphics/Rect;->top:I

    iget-object v1, p0, Lcom/xingbook/ui/overclass/HVScrollView;->d:Landroid/graphics/Rect;

    iput v2, v1, Landroid/graphics/Rect;->bottom:I

    if-eqz v0, :cond_0

    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->getChildCount()I

    move-result v0

    if-lez v0, :cond_0

    add-int/lit8 v0, v0, -0x1

    invoke-virtual {p0, v0}, Lcom/xingbook/ui/overclass/HVScrollView;->getChildAt(I)Landroid/view/View;

    move-result-object v0

    iget-object v1, p0, Lcom/xingbook/ui/overclass/HVScrollView;->d:Landroid/graphics/Rect;

    invoke-virtual {v0}, Landroid/view/View;->getBottom()I

    move-result v0

    iput v0, v1, Landroid/graphics/Rect;->bottom:I

    iget-object v0, p0, Lcom/xingbook/ui/overclass/HVScrollView;->d:Landroid/graphics/Rect;

    iget-object v1, p0, Lcom/xingbook/ui/overclass/HVScrollView;->d:Landroid/graphics/Rect;

    iget v1, v1, Landroid/graphics/Rect;->bottom:I

    sub-int/2addr v1, v2

    iput v1, v0, Landroid/graphics/Rect;->top:I

    :cond_0
    iget-object v0, p0, Lcom/xingbook/ui/overclass/HVScrollView;->d:Landroid/graphics/Rect;

    iget v0, v0, Landroid/graphics/Rect;->top:I

    iget-object v1, p0, Lcom/xingbook/ui/overclass/HVScrollView;->d:Landroid/graphics/Rect;

    iget v1, v1, Landroid/graphics/Rect;->bottom:I

    invoke-direct {p0, p1, v0, v1}, Lcom/xingbook/ui/overclass/HVScrollView;->a(III)Z

    move-result v0

    return v0

    :cond_1
    move v0, v1

    goto :goto_0
.end method

.method public a(Landroid/view/KeyEvent;)Z
    .locals 6

    const/16 v5, 0x82

    const/16 v4, 0x42

    const/16 v3, 0x21

    const/16 v2, 0x11

    iget-object v0, p0, Lcom/xingbook/ui/overclass/HVScrollView;->d:Landroid/graphics/Rect;

    invoke-virtual {v0}, Landroid/graphics/Rect;->setEmpty()V

    const/4 v0, 0x0

    invoke-virtual {p1}, Landroid/view/KeyEvent;->getAction()I

    move-result v1

    if-nez v1, :cond_0

    invoke-virtual {p1}, Landroid/view/KeyEvent;->getKeyCode()I

    move-result v1

    packed-switch v1, :pswitch_data_0

    :cond_0
    :goto_0
    return v0

    :pswitch_0
    invoke-direct {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->c()Z

    move-result v1

    if-eqz v1, :cond_0

    invoke-virtual {p1}, Landroid/view/KeyEvent;->isAltPressed()Z

    move-result v0

    if-nez v0, :cond_1

    invoke-virtual {p0, v2}, Lcom/xingbook/ui/overclass/HVScrollView;->d(I)Z

    move-result v0

    goto :goto_0

    :cond_1
    invoke-virtual {p0, v2}, Lcom/xingbook/ui/overclass/HVScrollView;->b(I)Z

    move-result v0

    goto :goto_0

    :pswitch_1
    invoke-direct {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->c()Z

    move-result v1

    if-eqz v1, :cond_0

    invoke-virtual {p1}, Landroid/view/KeyEvent;->isAltPressed()Z

    move-result v0

    if-nez v0, :cond_2

    invoke-virtual {p0, v4}, Lcom/xingbook/ui/overclass/HVScrollView;->d(I)Z

    move-result v0

    goto :goto_0

    :cond_2
    invoke-virtual {p0, v4}, Lcom/xingbook/ui/overclass/HVScrollView;->b(I)Z

    move-result v0

    goto :goto_0

    :pswitch_2
    invoke-direct {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->b()Z

    move-result v1

    if-eqz v1, :cond_0

    invoke-virtual {p1}, Landroid/view/KeyEvent;->isAltPressed()Z

    move-result v0

    if-nez v0, :cond_3

    invoke-virtual {p0, v3}, Lcom/xingbook/ui/overclass/HVScrollView;->c(I)Z

    move-result v0

    goto :goto_0

    :cond_3
    invoke-virtual {p0, v3}, Lcom/xingbook/ui/overclass/HVScrollView;->a(I)Z

    move-result v0

    goto :goto_0

    :pswitch_3
    invoke-direct {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->b()Z

    move-result v1

    if-eqz v1, :cond_0

    invoke-virtual {p1}, Landroid/view/KeyEvent;->isAltPressed()Z

    move-result v0

    if-nez v0, :cond_4

    invoke-virtual {p0, v5}, Lcom/xingbook/ui/overclass/HVScrollView;->c(I)Z

    move-result v0

    goto :goto_0

    :cond_4
    invoke-virtual {p0, v5}, Lcom/xingbook/ui/overclass/HVScrollView;->a(I)Z

    move-result v0

    goto :goto_0

    :pswitch_data_0
    .packed-switch 0x13
        :pswitch_2
        :pswitch_3
        :pswitch_0
        :pswitch_1
    .end packed-switch
.end method

.method public addView(Landroid/view/View;)V
    .locals 2

    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->getChildCount()I

    move-result v0

    if-lez v0, :cond_0

    new-instance v0, Ljava/lang/IllegalStateException;

    const-string v1, "ScrollView can host only one direct child"

    invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V

    throw v0

    :cond_0
    invoke-super {p0, p1}, Landroid/widget/FrameLayout;->addView(Landroid/view/View;)V

    return-void
.end method

.method public addView(Landroid/view/View;I)V
    .locals 2

    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->getChildCount()I

    move-result v0

    if-lez v0, :cond_0

    new-instance v0, Ljava/lang/IllegalStateException;

    const-string v1, "ScrollView can host only one direct child"

    invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V

    throw v0

    :cond_0
    invoke-super {p0, p1, p2}, Landroid/widget/FrameLayout;->addView(Landroid/view/View;I)V

    return-void
.end method

.method public addView(Landroid/view/View;ILandroid/view/ViewGroup$LayoutParams;)V
    .locals 2

    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->getChildCount()I

    move-result v0

    if-lez v0, :cond_0

    new-instance v0, Ljava/lang/IllegalStateException;

    const-string v1, "ScrollView can host only one direct child"

    invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V

    throw v0

    :cond_0
    invoke-super {p0, p1, p2, p3}, Landroid/widget/FrameLayout;->addView(Landroid/view/View;ILandroid/view/ViewGroup$LayoutParams;)V

    return-void
.end method

.method public addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V
    .locals 2

    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->getChildCount()I

    move-result v0

    if-lez v0, :cond_0

    new-instance v0, Ljava/lang/IllegalStateException;

    const-string v1, "ScrollView can host only one direct child"

    invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V

    throw v0

    :cond_0
    invoke-super {p0, p1, p2}, Landroid/widget/FrameLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    return-void
.end method

.method protected b(Landroid/graphics/Rect;)I
    .locals 7

    const/4 v2, 0x0

    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->getChildCount()I

    move-result v0

    if-nez v0, :cond_0

    :goto_0
    return v2

    :cond_0
    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->getWidth()I

    move-result v3

    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->getScrollX()I

    move-result v0

    add-int v1, v0, v3

    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->getHorizontalFadingEdgeLength()I

    move-result v4

    iget v5, p1, Landroid/graphics/Rect;->left:I

    if-lez v5, :cond_1

    add-int/2addr v0, v4

    :cond_1
    iget v5, p1, Landroid/graphics/Rect;->right:I

    invoke-virtual {p0, v2}, Lcom/xingbook/ui/overclass/HVScrollView;->getChildAt(I)Landroid/view/View;

    move-result-object v6

    invoke-virtual {v6}, Landroid/view/View;->getWidth()I

    move-result v6

    if-ge v5, v6, :cond_2

    sub-int/2addr v1, v4

    :cond_2
    iget v4, p1, Landroid/graphics/Rect;->right:I

    if-le v4, v1, :cond_4

    iget v4, p1, Landroid/graphics/Rect;->left:I

    if-le v4, v0, :cond_4

    invoke-virtual {p1}, Landroid/graphics/Rect;->width()I

    move-result v4

    if-le v4, v3, :cond_3

    iget v3, p1, Landroid/graphics/Rect;->left:I

    sub-int v0, v3, v0

    add-int/2addr v0, v2

    :goto_1
    invoke-virtual {p0, v2}, Lcom/xingbook/ui/overclass/HVScrollView;->getChildAt(I)Landroid/view/View;

    move-result-object v2

    invoke-virtual {v2}, Landroid/view/View;->getRight()I

    move-result v2

    sub-int v1, v2, v1

    invoke-static {v0, v1}, Ljava/lang/Math;->min(II)I

    move-result v0

    :goto_2
    move v2, v0

    goto :goto_0

    :cond_3
    iget v0, p1, Landroid/graphics/Rect;->right:I

    sub-int/2addr v0, v1

    add-int/2addr v0, v2

    goto :goto_1

    :cond_4
    iget v4, p1, Landroid/graphics/Rect;->left:I

    if-ge v4, v0, :cond_6

    iget v4, p1, Landroid/graphics/Rect;->right:I

    if-ge v4, v1, :cond_6

    invoke-virtual {p1}, Landroid/graphics/Rect;->width()I

    move-result v4

    if-le v4, v3, :cond_5

    iget v0, p1, Landroid/graphics/Rect;->right:I

    sub-int v0, v1, v0

    sub-int v0, v2, v0

    :goto_3
    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->getScrollX()I

    move-result v1

    neg-int v1, v1

    invoke-static {v0, v1}, Ljava/lang/Math;->max(II)I

    move-result v0

    goto :goto_2

    :cond_5
    iget v1, p1, Landroid/graphics/Rect;->left:I

    sub-int/2addr v0, v1

    sub-int v0, v2, v0

    goto :goto_3

    :cond_6
    move v0, v2

    goto :goto_2
.end method

.method public b(II)V
    .locals 9

    const/4 v5, 0x0

    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->getChildCount()I

    move-result v0

    if-lez v0, :cond_0

    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->getWidth()I

    move-result v0

    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->getPaddingRight()I

    move-result v1

    sub-int/2addr v0, v1

    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->getPaddingLeft()I

    move-result v1

    sub-int v3, v0, v1

    invoke-virtual {p0, v5}, Lcom/xingbook/ui/overclass/HVScrollView;->getChildAt(I)Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0}, Landroid/view/View;->getWidth()I

    move-result v4

    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->getHeight()I

    move-result v0

    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->getPaddingBottom()I

    move-result v1

    sub-int/2addr v0, v1

    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->getPaddingTop()I

    move-result v1

    sub-int v7, v0, v1

    invoke-virtual {p0, v5}, Lcom/xingbook/ui/overclass/HVScrollView;->getChildAt(I)Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0}, Landroid/view/View;->getHeight()I

    move-result v8

    iget-object v0, p0, Lcom/xingbook/ui/overclass/HVScrollView;->e:Landroid/widget/Scroller;

    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->getScrollX()I

    move-result v1

    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->getScrollY()I

    move-result v2

    sub-int v3, v4, v3

    invoke-static {v5, v3}, Ljava/lang/Math;->max(II)I

    move-result v6

    sub-int v3, v8, v7

    invoke-static {v5, v3}, Ljava/lang/Math;->max(II)I

    move-result v8

    move v3, p1

    move v4, p2

    move v7, v5

    invoke-virtual/range {v0 .. v8}, Landroid/widget/Scroller;->fling(IIIIIIII)V

    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->invalidate()V

    :cond_0
    return-void
.end method

.method public b(I)Z
    .locals 4

    const/4 v1, 0x0

    const/16 v0, 0x42

    if-ne p1, v0, :cond_1

    const/4 v0, 0x1

    :goto_0
    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->getWidth()I

    move-result v2

    iget-object v3, p0, Lcom/xingbook/ui/overclass/HVScrollView;->d:Landroid/graphics/Rect;

    iput v1, v3, Landroid/graphics/Rect;->left:I

    iget-object v3, p0, Lcom/xingbook/ui/overclass/HVScrollView;->d:Landroid/graphics/Rect;

    iput v2, v3, Landroid/graphics/Rect;->right:I

    if-eqz v0, :cond_0

    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->getChildCount()I

    move-result v0

    if-lez v0, :cond_0

    invoke-virtual {p0, v1}, Lcom/xingbook/ui/overclass/HVScrollView;->getChildAt(I)Landroid/view/View;

    move-result-object v0

    iget-object v1, p0, Lcom/xingbook/ui/overclass/HVScrollView;->d:Landroid/graphics/Rect;

    invoke-virtual {v0}, Landroid/view/View;->getRight()I

    move-result v0

    iput v0, v1, Landroid/graphics/Rect;->right:I

    iget-object v0, p0, Lcom/xingbook/ui/overclass/HVScrollView;->d:Landroid/graphics/Rect;

    iget-object v1, p0, Lcom/xingbook/ui/overclass/HVScrollView;->d:Landroid/graphics/Rect;

    iget v1, v1, Landroid/graphics/Rect;->right:I

    sub-int/2addr v1, v2

    iput v1, v0, Landroid/graphics/Rect;->left:I

    :cond_0
    iget-object v0, p0, Lcom/xingbook/ui/overclass/HVScrollView;->d:Landroid/graphics/Rect;

    iget v0, v0, Landroid/graphics/Rect;->left:I

    iget-object v1, p0, Lcom/xingbook/ui/overclass/HVScrollView;->d:Landroid/graphics/Rect;

    iget v1, v1, Landroid/graphics/Rect;->right:I

    invoke-direct {p0, p1, v0, v1}, Lcom/xingbook/ui/overclass/HVScrollView;->b(III)Z

    move-result v0

    return v0

    :cond_1
    move v0, v1

    goto :goto_0
.end method

.method public c(I)Z
    .locals 7

    const/16 v6, 0x82

    const/4 v2, 0x0

    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->findFocus()Landroid/view/View;

    move-result-object v0

    if-ne v0, p0, :cond_0

    const/4 v0, 0x0

    :cond_0
    invoke-static {}, Landroid/view/FocusFinder;->getInstance()Landroid/view/FocusFinder;

    move-result-object v1

    invoke-virtual {v1, p0, v0, p1}, Landroid/view/FocusFinder;->findNextFocus(Landroid/view/ViewGroup;Landroid/view/View;I)Landroid/view/View;

    move-result-object v3

    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->getMaxScrollAmountV()I

    move-result v1

    if-eqz v3, :cond_2

    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->getHeight()I

    move-result v4

    invoke-direct {p0, v3, v1, v4}, Lcom/xingbook/ui/overclass/HVScrollView;->a(Landroid/view/View;II)Z

    move-result v4

    if-eqz v4, :cond_2

    iget-object v1, p0, Lcom/xingbook/ui/overclass/HVScrollView;->d:Landroid/graphics/Rect;

    invoke-virtual {v3, v1}, Landroid/view/View;->getDrawingRect(Landroid/graphics/Rect;)V

    iget-object v1, p0, Lcom/xingbook/ui/overclass/HVScrollView;->d:Landroid/graphics/Rect;

    invoke-virtual {p0, v3, v1}, Lcom/xingbook/ui/overclass/HVScrollView;->offsetDescendantRectToMyCoords(Landroid/view/View;Landroid/graphics/Rect;)V

    iget-object v1, p0, Lcom/xingbook/ui/overclass/HVScrollView;->d:Landroid/graphics/Rect;

    invoke-virtual {p0, v1}, Lcom/xingbook/ui/overclass/HVScrollView;->a(Landroid/graphics/Rect;)I

    move-result v1

    invoke-direct {p0, v1}, Lcom/xingbook/ui/overclass/HVScrollView;->e(I)V

    invoke-virtual {v3, p1}, Landroid/view/View;->requestFocus(I)Z

    :goto_0
    if-eqz v0, :cond_1

    invoke-virtual {v0}, Landroid/view/View;->isFocused()Z

    move-result v1

    if-eqz v1, :cond_1

    invoke-direct {p0, v0}, Lcom/xingbook/ui/overclass/HVScrollView;->a(Landroid/view/View;)Z

    move-result v0

    if-eqz v0, :cond_1

    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->getDescendantFocusability()I

    move-result v0

    const/high16 v1, 0x2

    invoke-virtual {p0, v1}, Lcom/xingbook/ui/overclass/HVScrollView;->setDescendantFocusability(I)V

    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->requestFocus()Z

    invoke-virtual {p0, v0}, Lcom/xingbook/ui/overclass/HVScrollView;->setDescendantFocusability(I)V

    :cond_1
    const/4 v0, 0x1

    :goto_1
    return v0

    :cond_2
    const/16 v3, 0x21

    if-ne p1, v3, :cond_4

    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->getScrollY()I

    move-result v3

    if-ge v3, v1, :cond_4

    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->getScrollY()I

    move-result v1

    :cond_3
    :goto_2
    if-nez v1, :cond_5

    move v0, v2

    goto :goto_1

    :cond_4
    if-ne p1, v6, :cond_3

    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->getChildCount()I

    move-result v3

    if-lez v3, :cond_3

    invoke-virtual {p0, v2}, Lcom/xingbook/ui/overclass/HVScrollView;->getChildAt(I)Landroid/view/View;

    move-result-object v3

    invoke-virtual {v3}, Landroid/view/View;->getBottom()I

    move-result v3

    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->getScrollY()I

    move-result v4

    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->getHeight()I

    move-result v5

    add-int/2addr v4, v5

    sub-int v5, v3, v4

    if-ge v5, v1, :cond_3

    sub-int v1, v3, v4

    goto :goto_2

    :cond_5
    if-ne p1, v6, :cond_6

    :goto_3
    invoke-direct {p0, v1}, Lcom/xingbook/ui/overclass/HVScrollView;->e(I)V

    goto :goto_0

    :cond_6
    neg-int v1, v1

    goto :goto_3
.end method

.method protected computeHorizontalScrollOffset()I
    .locals 2

    const/4 v0, 0x0

    invoke-super {p0}, Landroid/widget/FrameLayout;->computeHorizontalScrollOffset()I

    move-result v1

    invoke-static {v0, v1}, Ljava/lang/Math;->max(II)I

    move-result v0

    return v0
.end method

.method protected computeHorizontalScrollRange()I
    .locals 3

    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->getChildCount()I

    move-result v1

    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->getWidth()I

    move-result v0

    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->getPaddingLeft()I

    move-result v2

    sub-int/2addr v0, v2

    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->getPaddingRight()I

    move-result v2

    sub-int/2addr v0, v2

    if-nez v1, :cond_0

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    invoke-virtual {p0, v0}, Lcom/xingbook/ui/overclass/HVScrollView;->getChildAt(I)Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0}, Landroid/view/View;->getRight()I

    move-result v0

    goto :goto_0
.end method

.method public computeScroll()V
    .locals 5

    iget-object v0, p0, Lcom/xingbook/ui/overclass/HVScrollView;->e:Landroid/widget/Scroller;

    invoke-virtual {v0}, Landroid/widget/Scroller;->computeScrollOffset()Z

    move-result v0

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/xingbook/ui/overclass/HVScrollView;->e:Landroid/widget/Scroller;

    invoke-virtual {v0}, Landroid/widget/Scroller;->getCurrX()I

    move-result v0

    iget-object v1, p0, Lcom/xingbook/ui/overclass/HVScrollView;->e:Landroid/widget/Scroller;

    invoke-virtual {v1}, Landroid/widget/Scroller;->getCurrY()I

    move-result v1

    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->getChildCount()I

    move-result v2

    if-lez v2, :cond_0

    const/4 v2, 0x0

    invoke-virtual {p0, v2}, Lcom/xingbook/ui/overclass/HVScrollView;->getChildAt(I)Landroid/view/View;

    move-result-object v2

    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->getWidth()I

    move-result v3

    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->getPaddingRight()I

    move-result v4

    sub-int/2addr v3, v4

    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->getPaddingLeft()I

    move-result v4

    sub-int/2addr v3, v4

    invoke-virtual {v2}, Landroid/view/View;->getWidth()I

    move-result v4

    invoke-direct {p0, v0, v3, v4}, Lcom/xingbook/ui/overclass/HVScrollView;->c(III)I

    move-result v0

    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->getHeight()I

    move-result v3

    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->getPaddingBottom()I

    move-result v4

    sub-int/2addr v3, v4

    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->getPaddingTop()I

    move-result v4

    sub-int/2addr v3, v4

    invoke-virtual {v2}, Landroid/view/View;->getHeight()I

    move-result v2

    invoke-direct {p0, v1, v3, v2}, Lcom/xingbook/ui/overclass/HVScrollView;->c(III)I

    move-result v1

    invoke-super {p0, v0, v1}, Landroid/widget/FrameLayout;->scrollTo(II)V

    :cond_0
    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->awakenScrollBars()Z

    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->postInvalidate()V

    :cond_1
    return-void
.end method

.method protected computeVerticalScrollOffset()I
    .locals 2

    const/4 v0, 0x0

    invoke-super {p0}, Landroid/widget/FrameLayout;->computeVerticalScrollOffset()I

    move-result v1

    invoke-static {v0, v1}, Ljava/lang/Math;->max(II)I

    move-result v0

    return v0
.end method

.method protected computeVerticalScrollRange()I
    .locals 3

    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->getChildCount()I

    move-result v1

    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->getHeight()I

    move-result v0

    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->getPaddingBottom()I

    move-result v2

    sub-int/2addr v0, v2

    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->getPaddingTop()I

    move-result v2

    sub-int/2addr v0, v2

    if-nez v1, :cond_0

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    invoke-virtual {p0, v0}, Lcom/xingbook/ui/overclass/HVScrollView;->getChildAt(I)Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0}, Landroid/view/View;->getBottom()I

    move-result v0

    goto :goto_0
.end method

.method public d(I)Z
    .locals 7

    const/16 v6, 0x42

    const/4 v2, 0x0

    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->findFocus()Landroid/view/View;

    move-result-object v0

    if-ne v0, p0, :cond_0

    const/4 v0, 0x0

    :cond_0
    invoke-static {}, Landroid/view/FocusFinder;->getInstance()Landroid/view/FocusFinder;

    move-result-object v1

    invoke-virtual {v1, p0, v0, p1}, Landroid/view/FocusFinder;->findNextFocus(Landroid/view/ViewGroup;Landroid/view/View;I)Landroid/view/View;

    move-result-object v3

    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->getMaxScrollAmountH()I

    move-result v1

    if-eqz v3, :cond_2

    invoke-direct {p0, v3, v1}, Lcom/xingbook/ui/overclass/HVScrollView;->a(Landroid/view/View;I)Z

    move-result v4

    if-eqz v4, :cond_2

    iget-object v1, p0, Lcom/xingbook/ui/overclass/HVScrollView;->d:Landroid/graphics/Rect;

    invoke-virtual {v3, v1}, Landroid/view/View;->getDrawingRect(Landroid/graphics/Rect;)V

    iget-object v1, p0, Lcom/xingbook/ui/overclass/HVScrollView;->d:Landroid/graphics/Rect;

    invoke-virtual {p0, v3, v1}, Lcom/xingbook/ui/overclass/HVScrollView;->offsetDescendantRectToMyCoords(Landroid/view/View;Landroid/graphics/Rect;)V

    iget-object v1, p0, Lcom/xingbook/ui/overclass/HVScrollView;->d:Landroid/graphics/Rect;

    invoke-virtual {p0, v1}, Lcom/xingbook/ui/overclass/HVScrollView;->b(Landroid/graphics/Rect;)I

    move-result v1

    invoke-direct {p0, v1}, Lcom/xingbook/ui/overclass/HVScrollView;->f(I)V

    invoke-virtual {v3, p1}, Landroid/view/View;->requestFocus(I)Z

    :goto_0
    if-eqz v0, :cond_1

    invoke-virtual {v0}, Landroid/view/View;->isFocused()Z

    move-result v1

    if-eqz v1, :cond_1

    invoke-direct {p0, v0}, Lcom/xingbook/ui/overclass/HVScrollView;->b(Landroid/view/View;)Z

    move-result v0

    if-eqz v0, :cond_1

    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->getDescendantFocusability()I

    move-result v0

    const/high16 v1, 0x2

    invoke-virtual {p0, v1}, Lcom/xingbook/ui/overclass/HVScrollView;->setDescendantFocusability(I)V

    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->requestFocus()Z

    invoke-virtual {p0, v0}, Lcom/xingbook/ui/overclass/HVScrollView;->setDescendantFocusability(I)V

    :cond_1
    const/4 v0, 0x1

    :goto_1
    return v0

    :cond_2
    const/16 v3, 0x11

    if-ne p1, v3, :cond_4

    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->getScrollX()I

    move-result v3

    if-ge v3, v1, :cond_4

    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->getScrollX()I

    move-result v1

    :cond_3
    :goto_2
    if-nez v1, :cond_5

    move v0, v2

    goto :goto_1

    :cond_4
    if-ne p1, v6, :cond_3

    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->getChildCount()I

    move-result v3

    if-lez v3, :cond_3

    invoke-virtual {p0, v2}, Lcom/xingbook/ui/overclass/HVScrollView;->getChildAt(I)Landroid/view/View;

    move-result-object v3

    invoke-virtual {v3}, Landroid/view/View;->getRight()I

    move-result v3

    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->getScrollX()I

    move-result v4

    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->getWidth()I

    move-result v5

    add-int/2addr v4, v5

    sub-int v5, v3, v4

    if-ge v5, v1, :cond_3

    sub-int v1, v3, v4

    goto :goto_2

    :cond_5
    if-ne p1, v6, :cond_6

    :goto_3
    invoke-direct {p0, v1}, Lcom/xingbook/ui/overclass/HVScrollView;->f(I)V

    goto :goto_0

    :cond_6
    neg-int v1, v1

    goto :goto_3
.end method

.method public dispatchKeyEvent(Landroid/view/KeyEvent;)Z
    .locals 1

    invoke-super {p0, p1}, Landroid/widget/FrameLayout;->dispatchKeyEvent(Landroid/view/KeyEvent;)Z

    move-result v0

    if-nez v0, :cond_0

    invoke-virtual {p0, p1}, Lcom/xingbook/ui/overclass/HVScrollView;->a(Landroid/view/KeyEvent;)Z

    move-result v0

    if-nez v0, :cond_0

    const/4 v0, 0x0

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x1

    goto :goto_0
.end method

.method protected getBottomFadingEdgeStrength()F
    .locals 4

    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->getChildCount()I

    move-result v0

    if-nez v0, :cond_0

    const/4 v0, 0x0

    :goto_0
    return v0

    :cond_0
    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->getVerticalFadingEdgeLength()I

    move-result v0

    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->getHeight()I

    move-result v1

    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->getPaddingBottom()I

    move-result v2

    sub-int/2addr v1, v2

    const/4 v2, 0x0

    invoke-virtual {p0, v2}, Lcom/xingbook/ui/overclass/HVScrollView;->getChildAt(I)Landroid/view/View;

    move-result-object v2

    invoke-virtual {v2}, Landroid/view/View;->getBottom()I

    move-result v2

    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->getScrollY()I

    move-result v3

    sub-int/2addr v2, v3

    sub-int v1, v2, v1

    if-ge v1, v0, :cond_1

    int-to-float v1, v1

    int-to-float v0, v0

    div-float v0, v1, v0

    goto :goto_0

    :cond_1
    const/high16 v0, 0x3f80

    goto :goto_0
.end method

.method protected getLeftFadingEdgeStrength()F
    .locals 2

    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->getChildCount()I

    move-result v0

    if-nez v0, :cond_0

    const/4 v0, 0x0

    :goto_0
    return v0

    :cond_0
    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->getHorizontalFadingEdgeLength()I

    move-result v0

    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->getScrollX()I

    move-result v1

    if-ge v1, v0, :cond_1

    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->getScrollX()I

    move-result v1

    int-to-float v1, v1

    int-to-float v0, v0

    div-float v0, v1, v0

    goto :goto_0

    :cond_1
    const/high16 v0, 0x3f80

    goto :goto_0
.end method

.method public getMaxScrollAmountH()I
    .locals 3

    const/high16 v0, 0x3f00

    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->getRight()I

    move-result v1

    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->getLeft()I

    move-result v2

    sub-int/2addr v1, v2

    int-to-float v1, v1

    mul-float/2addr v0, v1

    float-to-int v0, v0

    return v0
.end method

.method public getMaxScrollAmountV()I
    .locals 3

    const/high16 v0, 0x3f00

    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->getBottom()I

    move-result v1

    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->getTop()I

    move-result v2

    sub-int/2addr v1, v2

    int-to-float v1, v1

    mul-float/2addr v0, v1

    float-to-int v0, v0

    return v0
.end method

.method protected getRightFadingEdgeStrength()F
    .locals 4

    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->getChildCount()I

    move-result v0

    if-nez v0, :cond_0

    const/4 v0, 0x0

    :goto_0
    return v0

    :cond_0
    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->getHorizontalFadingEdgeLength()I

    move-result v0

    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->getWidth()I

    move-result v1

    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->getPaddingRight()I

    move-result v2

    sub-int/2addr v1, v2

    const/4 v2, 0x0

    invoke-virtual {p0, v2}, Lcom/xingbook/ui/overclass/HVScrollView;->getChildAt(I)Landroid/view/View;

    move-result-object v2

    invoke-virtual {v2}, Landroid/view/View;->getRight()I

    move-result v2

    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->getScrollX()I

    move-result v3

    sub-int/2addr v2, v3

    sub-int v1, v2, v1

    if-ge v1, v0, :cond_1

    int-to-float v1, v1

    int-to-float v0, v0

    div-float v0, v1, v0

    goto :goto_0

    :cond_1
    const/high16 v0, 0x3f80

    goto :goto_0
.end method

.method protected getTopFadingEdgeStrength()F
    .locals 2

    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->getChildCount()I

    move-result v0

    if-nez v0, :cond_0

    const/4 v0, 0x0

    :goto_0
    return v0

    :cond_0
    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->getVerticalFadingEdgeLength()I

    move-result v0

    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->getScrollY()I

    move-result v1

    if-ge v1, v0, :cond_1

    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->getScrollY()I

    move-result v1

    int-to-float v1, v1

    int-to-float v0, v0

    div-float v0, v1, v0

    goto :goto_0

    :cond_1
    const/high16 v0, 0x3f80

    goto :goto_0
.end method

.method protected measureChild(Landroid/view/View;II)V
    .locals 2

    const/4 v1, 0x0

    invoke-static {v1, v1}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I

    move-result v0

    invoke-static {v1, v1}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I

    move-result v1

    invoke-virtual {p1, v0, v1}, Landroid/view/View;->measure(II)V

    return-void
.end method

.method protected measureChildWithMargins(Landroid/view/View;IIII)V
    .locals 4

    const/4 v3, 0x0

    invoke-virtual {p1}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v0

    check-cast v0, Landroid/view/ViewGroup$MarginLayoutParams;

    iget v1, v0, Landroid/view/ViewGroup$MarginLayoutParams;->leftMargin:I

    iget v2, v0, Landroid/view/ViewGroup$MarginLayoutParams;->rightMargin:I

    add-int/2addr v1, v2

    invoke-static {v1, v3}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I

    move-result v1

    iget v2, v0, Landroid/view/ViewGroup$MarginLayoutParams;->topMargin:I

    iget v0, v0, Landroid/view/ViewGroup$MarginLayoutParams;->bottomMargin:I

    add-int/2addr v0, v2

    invoke-static {v0, v3}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I

    move-result v0

    invoke-virtual {p1, v1, v0}, Landroid/view/View;->measure(II)V

    return-void
.end method

.method public onInterceptTouchEvent(Landroid/view/MotionEvent;)Z
    .locals 6

    const/4 v4, -0x1

    const/4 v1, 0x1

    const/4 v0, 0x0

    invoke-virtual {p1}, Landroid/view/MotionEvent;->getAction()I

    move-result v2

    const/4 v3, 0x2

    if-ne v2, v3, :cond_0

    iget-boolean v3, p0, Lcom/xingbook/ui/overclass/HVScrollView;->k:Z

    if-eqz v3, :cond_0

    :goto_0
    return v1

    :cond_0
    and-int/lit16 v2, v2, 0xff

    packed-switch v2, :pswitch_data_0

    :cond_1
    :goto_1
    :pswitch_0
    iget-boolean v1, p0, Lcom/xingbook/ui/overclass/HVScrollView;->k:Z

    goto :goto_0

    :pswitch_1
    iget v0, p0, Lcom/xingbook/ui/overclass/HVScrollView;->r:I

    if-eq v0, v4, :cond_1

    invoke-virtual {p1, v0}, Landroid/view/MotionEvent;->findPointerIndex(I)I

    move-result v0

    invoke-virtual {p1, v0}, Landroid/view/MotionEvent;->getY(I)F

    move-result v2

    iget v3, p0, Lcom/xingbook/ui/overclass/HVScrollView;->g:F

    sub-float v3, v2, v3

    invoke-static {v3}, Ljava/lang/Math;->abs(F)F

    move-result v3

    float-to-int v3, v3

    iget v4, p0, Lcom/xingbook/ui/overclass/HVScrollView;->o:I

    if-le v3, v4, :cond_2

    iput-boolean v1, p0, Lcom/xingbook/ui/overclass/HVScrollView;->k:Z

    iput v2, p0, Lcom/xingbook/ui/overclass/HVScrollView;->g:F

    :cond_2
    invoke-virtual {p1, v0}, Landroid/view/MotionEvent;->getX(I)F

    move-result v0

    iget v2, p0, Lcom/xingbook/ui/overclass/HVScrollView;->h:F

    sub-float v2, v0, v2

    invoke-static {v2}, Ljava/lang/Math;->abs(F)F

    move-result v2

    float-to-int v2, v2

    iget v3, p0, Lcom/xingbook/ui/overclass/HVScrollView;->o:I

    if-le v2, v3, :cond_1

    iput-boolean v1, p0, Lcom/xingbook/ui/overclass/HVScrollView;->k:Z

    iput v0, p0, Lcom/xingbook/ui/overclass/HVScrollView;->h:F

    goto :goto_1

    :pswitch_2
    invoke-virtual {p1}, Landroid/view/MotionEvent;->getX()F

    move-result v2

    invoke-virtual {p1}, Landroid/view/MotionEvent;->getY()F

    move-result v3

    float-to-int v4, v2

    float-to-int v5, v3

    invoke-direct {p0, v4, v5}, Lcom/xingbook/ui/overclass/HVScrollView;->c(II)Z

    move-result v4

    if-nez v4, :cond_3

    iput-boolean v0, p0, Lcom/xingbook/ui/overclass/HVScrollView;->k:Z

    goto :goto_1

    :cond_3
    iput v3, p0, Lcom/xingbook/ui/overclass/HVScrollView;->g:F

    iput v2, p0, Lcom/xingbook/ui/overclass/HVScrollView;->h:F

    invoke-virtual {p1, v0}, Landroid/view/MotionEvent;->getPointerId(I)I

    move-result v2

    iput v2, p0, Lcom/xingbook/ui/overclass/HVScrollView;->r:I

    iget-object v2, p0, Lcom/xingbook/ui/overclass/HVScrollView;->e:Landroid/widget/Scroller;

    invoke-virtual {v2}, Landroid/widget/Scroller;->isFinished()Z

    move-result v2

    if-eqz v2, :cond_4

    :goto_2
    iput-boolean v0, p0, Lcom/xingbook/ui/overclass/HVScrollView;->k:Z

    goto :goto_1

    :cond_4
    move v0, v1

    goto :goto_2

    :pswitch_3
    iput-boolean v0, p0, Lcom/xingbook/ui/overclass/HVScrollView;->k:Z

    iput v4, p0, Lcom/xingbook/ui/overclass/HVScrollView;->r:I

    goto :goto_1

    :pswitch_4
    invoke-direct {p0, p1}, Lcom/xingbook/ui/overclass/HVScrollView;->a(Landroid/view/MotionEvent;)V

    goto :goto_1

    nop

    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_2
        :pswitch_3
        :pswitch_1
        :pswitch_3
        :pswitch_0
        :pswitch_0
        :pswitch_4
    .end packed-switch
.end method

.method protected onLayout(ZIIII)V
    .locals 2

    invoke-super/range {p0 .. p5}, Landroid/widget/FrameLayout;->onLayout(ZIIII)V

    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/xingbook/ui/overclass/HVScrollView;->i:Z

    iget-object v0, p0, Lcom/xingbook/ui/overclass/HVScrollView;->j:Landroid/view/View;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/ui/overclass/HVScrollView;->j:Landroid/view/View;

    invoke-direct {p0, v0, p0}, Lcom/xingbook/ui/overclass/HVScrollView;->a(Landroid/view/View;Landroid/view/View;)Z

    move-result v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/ui/overclass/HVScrollView;->j:Landroid/view/View;

    invoke-direct {p0, v0}, Lcom/xingbook/ui/overclass/HVScrollView;->c(Landroid/view/View;)V

    :cond_0
    const/4 v0, 0x0

    iput-object v0, p0, Lcom/xingbook/ui/overclass/HVScrollView;->j:Landroid/view/View;

    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->getScrollX()I

    move-result v0

    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->getScrollY()I

    move-result v1

    invoke-virtual {p0, v0, v1}, Lcom/xingbook/ui/overclass/HVScrollView;->scrollTo(II)V

    return-void
.end method

.method protected onMeasure(II)V
    .locals 5

    const/high16 v4, 0x4000

    invoke-super {p0, p1, p2}, Landroid/widget/FrameLayout;->onMeasure(II)V

    iget-boolean v0, p0, Lcom/xingbook/ui/overclass/HVScrollView;->m:Z

    if-nez v0, :cond_1

    :cond_0
    :goto_0
    return-void

    :cond_1
    invoke-static {p2}, Landroid/view/View$MeasureSpec;->getMode(I)I

    move-result v0

    invoke-static {p1}, Landroid/view/View$MeasureSpec;->getMode(I)I

    move-result v1

    if-nez v0, :cond_2

    if-eqz v1, :cond_0

    :cond_2
    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->getChildCount()I

    move-result v0

    if-lez v0, :cond_0

    const/4 v0, 0x0

    invoke-virtual {p0, v0}, Lcom/xingbook/ui/overclass/HVScrollView;->getChildAt(I)Landroid/view/View;

    move-result-object v0

    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->getMeasuredHeight()I

    move-result v1

    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->getMeasuredWidth()I

    move-result v2

    invoke-virtual {v0}, Landroid/view/View;->getMeasuredHeight()I

    move-result v3

    if-lt v3, v1, :cond_3

    invoke-virtual {v0}, Landroid/view/View;->getMeasuredWidth()I

    move-result v3

    if-ge v3, v2, :cond_0

    :cond_3
    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->getPaddingLeft()I

    move-result v3

    sub-int/2addr v2, v3

    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->getPaddingRight()I

    move-result v3

    sub-int/2addr v2, v3

    invoke-static {v2, v4}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I

    move-result v2

    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->getPaddingTop()I

    move-result v3

    sub-int/2addr v1, v3

    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->getPaddingBottom()I

    move-result v3

    sub-int/2addr v1, v3

    invoke-static {v1, v4}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I

    move-result v1

    invoke-virtual {v0, v2, v1}, Landroid/view/View;->measure(II)V

    goto :goto_0
.end method

.method protected onRequestFocusInDescendants(ILandroid/graphics/Rect;)Z
    .locals 2

    if-nez p2, :cond_0

    invoke-static {}, Landroid/view/FocusFinder;->getInstance()Landroid/view/FocusFinder;

    move-result-object v0

    const/4 v1, 0x0

    invoke-virtual {v0, p0, v1, p1}, Landroid/view/FocusFinder;->findNextFocus(Landroid/view/ViewGroup;Landroid/view/View;I)Landroid/view/View;

    move-result-object v0

    :goto_0
    if-nez v0, :cond_1

    const/4 v0, 0x0

    :goto_1
    return v0

    :cond_0
    invoke-static {}, Landroid/view/FocusFinder;->getInstance()Landroid/view/FocusFinder;

    move-result-object v0

    invoke-virtual {v0, p0, p2, p1}, Landroid/view/FocusFinder;->findNextFocusFromRect(Landroid/view/ViewGroup;Landroid/graphics/Rect;I)Landroid/view/View;

    move-result-object v0

    goto :goto_0

    :cond_1
    invoke-virtual {v0, p1, p2}, Landroid/view/View;->requestFocus(ILandroid/graphics/Rect;)Z

    move-result v0

    goto :goto_1
.end method

.method protected onSizeChanged(IIII)V
    .locals 3

    invoke-super {p0, p1, p2, p3, p4}, Landroid/widget/FrameLayout;->onSizeChanged(IIII)V

    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->findFocus()Landroid/view/View;

    move-result-object v0

    if-eqz v0, :cond_0

    if-ne p0, v0, :cond_1

    :cond_0
    :goto_0
    return-void

    :cond_1
    const/4 v1, 0x0

    invoke-direct {p0, v0, v1, p4}, Lcom/xingbook/ui/overclass/HVScrollView;->a(Landroid/view/View;II)Z

    move-result v1

    if-eqz v1, :cond_2

    iget-object v1, p0, Lcom/xingbook/ui/overclass/HVScrollView;->d:Landroid/graphics/Rect;

    invoke-virtual {v0, v1}, Landroid/view/View;->getDrawingRect(Landroid/graphics/Rect;)V

    iget-object v1, p0, Lcom/xingbook/ui/overclass/HVScrollView;->d:Landroid/graphics/Rect;

    invoke-virtual {p0, v0, v1}, Lcom/xingbook/ui/overclass/HVScrollView;->offsetDescendantRectToMyCoords(Landroid/view/View;Landroid/graphics/Rect;)V

    iget-object v1, p0, Lcom/xingbook/ui/overclass/HVScrollView;->d:Landroid/graphics/Rect;

    invoke-virtual {p0, v1}, Lcom/xingbook/ui/overclass/HVScrollView;->a(Landroid/graphics/Rect;)I

    move-result v1

    invoke-direct {p0, v1}, Lcom/xingbook/ui/overclass/HVScrollView;->e(I)V

    :cond_2
    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->getRight()I

    move-result v1

    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->getLeft()I

    move-result v2

    sub-int/2addr v1, v2

    invoke-direct {p0, v0, v1}, Lcom/xingbook/ui/overclass/HVScrollView;->a(Landroid/view/View;I)Z

    move-result v1

    if-eqz v1, :cond_0

    iget-object v1, p0, Lcom/xingbook/ui/overclass/HVScrollView;->d:Landroid/graphics/Rect;

    invoke-virtual {v0, v1}, Landroid/view/View;->getDrawingRect(Landroid/graphics/Rect;)V

    iget-object v1, p0, Lcom/xingbook/ui/overclass/HVScrollView;->d:Landroid/graphics/Rect;

    invoke-virtual {p0, v0, v1}, Lcom/xingbook/ui/overclass/HVScrollView;->offsetDescendantRectToMyCoords(Landroid/view/View;Landroid/graphics/Rect;)V

    iget-object v0, p0, Lcom/xingbook/ui/overclass/HVScrollView;->d:Landroid/graphics/Rect;

    invoke-virtual {p0, v0}, Lcom/xingbook/ui/overclass/HVScrollView;->b(Landroid/graphics/Rect;)I

    move-result v0

    invoke-direct {p0, v0}, Lcom/xingbook/ui/overclass/HVScrollView;->f(I)V

    goto :goto_0
.end method

.method public onTouchEvent(Landroid/view/MotionEvent;)Z
    .locals 8

    const/4 v7, 0x0

    const/4 v6, -0x1

    const/high16 v5, -0x4080

    const/4 v0, 0x0

    invoke-virtual {p1}, Landroid/view/MotionEvent;->getAction()I

    move-result v1

    if-nez v1, :cond_1

    invoke-virtual {p1}, Landroid/view/MotionEvent;->getEdgeFlags()I

    move-result v1

    if-eqz v1, :cond_1

    :cond_0
    :goto_0
    return v0

    :cond_1
    iget-object v1, p0, Lcom/xingbook/ui/overclass/HVScrollView;->l:Landroid/view/VelocityTracker;

    if-nez v1, :cond_2

    invoke-static {}, Landroid/view/VelocityTracker;->obtain()Landroid/view/VelocityTracker;

    move-result-object v1

    iput-object v1, p0, Lcom/xingbook/ui/overclass/HVScrollView;->l:Landroid/view/VelocityTracker;

    :cond_2
    iget-object v1, p0, Lcom/xingbook/ui/overclass/HVScrollView;->l:Landroid/view/VelocityTracker;

    invoke-virtual {v1, p1}, Landroid/view/VelocityTracker;->addMovement(Landroid/view/MotionEvent;)V

    invoke-virtual {p1}, Landroid/view/MotionEvent;->getAction()I

    move-result v1

    and-int/lit16 v1, v1, 0xff

    packed-switch v1, :pswitch_data_0

    :cond_3
    :goto_1
    :pswitch_0
    const/4 v0, 0x1

    goto :goto_0

    :pswitch_1
    invoke-virtual {p1}, Landroid/view/MotionEvent;->getRawX()F

    move-result v1

    iput v1, p0, Lcom/xingbook/ui/overclass/HVScrollView;->a:F

    invoke-virtual {p1}, Landroid/view/MotionEvent;->getRawY()F

    move-result v1

    iput v1, p0, Lcom/xingbook/ui/overclass/HVScrollView;->b:F

    invoke-virtual {p1}, Landroid/view/MotionEvent;->getX()F

    move-result v1

    invoke-virtual {p1}, Landroid/view/MotionEvent;->getY()F

    move-result v2

    float-to-int v3, v1

    float-to-int v4, v2

    invoke-direct {p0, v3, v4}, Lcom/xingbook/ui/overclass/HVScrollView;->c(II)Z

    move-result v3

    iput-boolean v3, p0, Lcom/xingbook/ui/overclass/HVScrollView;->k:Z

    if-eqz v3, :cond_0

    iget-object v3, p0, Lcom/xingbook/ui/overclass/HVScrollView;->e:Landroid/widget/Scroller;

    invoke-virtual {v3}, Landroid/widget/Scroller;->isFinished()Z

    move-result v3

    if-nez v3, :cond_4

    iget-object v3, p0, Lcom/xingbook/ui/overclass/HVScrollView;->e:Landroid/widget/Scroller;

    invoke-virtual {v3}, Landroid/widget/Scroller;->abortAnimation()V

    :cond_4
    iput v2, p0, Lcom/xingbook/ui/overclass/HVScrollView;->g:F

    iput v1, p0, Lcom/xingbook/ui/overclass/HVScrollView;->h:F

    invoke-virtual {p1, v0}, Landroid/view/MotionEvent;->getPointerId(I)I

    move-result v0

    iput v0, p0, Lcom/xingbook/ui/overclass/HVScrollView;->r:I

    goto :goto_1

    :pswitch_2
    iget-boolean v0, p0, Lcom/xingbook/ui/overclass/HVScrollView;->k:Z

    if-eqz v0, :cond_3

    iget v0, p0, Lcom/xingbook/ui/overclass/HVScrollView;->r:I

    invoke-virtual {p1, v0}, Landroid/view/MotionEvent;->findPointerIndex(I)I

    move-result v0

    invoke-virtual {p1, v0}, Landroid/view/MotionEvent;->getY(I)F

    move-result v1

    iget v2, p0, Lcom/xingbook/ui/overclass/HVScrollView;->g:F

    sub-float/2addr v2, v1

    float-to-int v2, v2

    iput v1, p0, Lcom/xingbook/ui/overclass/HVScrollView;->g:F

    invoke-virtual {p1, v0}, Landroid/view/MotionEvent;->getX(I)F

    move-result v0

    iget v1, p0, Lcom/xingbook/ui/overclass/HVScrollView;->h:F

    sub-float/2addr v1, v0

    float-to-int v1, v1

    iput v0, p0, Lcom/xingbook/ui/overclass/HVScrollView;->h:F

    invoke-virtual {p0, v1, v2}, Lcom/xingbook/ui/overclass/HVScrollView;->scrollBy(II)V

    goto :goto_1

    :pswitch_3
    iget-boolean v1, p0, Lcom/xingbook/ui/overclass/HVScrollView;->k:Z

    if-eqz v1, :cond_3

    iget-boolean v1, p0, Lcom/xingbook/ui/overclass/HVScrollView;->s:Z

    if-eqz v1, :cond_6

    iget-object v1, p0, Lcom/xingbook/ui/overclass/HVScrollView;->l:Landroid/view/VelocityTracker;

    const/16 v2, 0x3e8

    iget v3, p0, Lcom/xingbook/ui/overclass/HVScrollView;->q:I

    int-to-float v3, v3

    invoke-virtual {v1, v2, v3}, Landroid/view/VelocityTracker;->computeCurrentVelocity(IF)V

    invoke-virtual {v1}, Landroid/view/VelocityTracker;->getXVelocity()F

    move-result v2

    float-to-int v2, v2

    invoke-virtual {v1}, Landroid/view/VelocityTracker;->getYVelocity()F

    move-result v1

    float-to-int v1, v1

    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->getChildCount()I

    move-result v3

    if-lez v3, :cond_6

    invoke-static {v2}, Ljava/lang/Math;->abs(I)I

    move-result v3

    if-gt v3, v2, :cond_5

    invoke-static {v1}, Ljava/lang/Math;->abs(I)I

    move-result v3

    iget v4, p0, Lcom/xingbook/ui/overclass/HVScrollView;->p:I

    if-le v3, v4, :cond_6

    :cond_5
    neg-int v2, v2

    neg-int v1, v1

    invoke-virtual {p0, v2, v1}, Lcom/xingbook/ui/overclass/HVScrollView;->b(II)V

    :cond_6
    iput v6, p0, Lcom/xingbook/ui/overclass/HVScrollView;->r:I

    iput-boolean v0, p0, Lcom/xingbook/ui/overclass/HVScrollView;->k:Z

    iget-object v0, p0, Lcom/xingbook/ui/overclass/HVScrollView;->l:Landroid/view/VelocityTracker;

    if-eqz v0, :cond_7

    iget-object v0, p0, Lcom/xingbook/ui/overclass/HVScrollView;->l:Landroid/view/VelocityTracker;

    invoke-virtual {v0}, Landroid/view/VelocityTracker;->recycle()V

    iput-object v7, p0, Lcom/xingbook/ui/overclass/HVScrollView;->l:Landroid/view/VelocityTracker;

    :cond_7
    iget v0, p0, Lcom/xingbook/ui/overclass/HVScrollView;->a:F

    cmpl-float v0, v0, v5

    if-eqz v0, :cond_3

    iget v0, p0, Lcom/xingbook/ui/overclass/HVScrollView;->b:F

    cmpl-float v0, v0, v5

    if-eqz v0, :cond_3

    iget v0, p0, Lcom/xingbook/ui/overclass/HVScrollView;->a:F

    invoke-virtual {p1}, Landroid/view/MotionEvent;->getRawX()F

    move-result v1

    sub-float/2addr v0, v1

    iget v1, p0, Lcom/xingbook/ui/overclass/HVScrollView;->a:F

    invoke-virtual {p1}, Landroid/view/MotionEvent;->getRawX()F

    move-result v2

    sub-float/2addr v1, v2

    mul-float/2addr v0, v1

    iget v1, p0, Lcom/xingbook/ui/overclass/HVScrollView;->b:F

    invoke-virtual {p1}, Landroid/view/MotionEvent;->getRawY()F

    move-result v2

    sub-float/2addr v1, v2

    iget v2, p0, Lcom/xingbook/ui/overclass/HVScrollView;->b:F

    invoke-virtual {p1}, Landroid/view/MotionEvent;->getRawY()F

    move-result v3

    sub-float/2addr v2, v3

    mul-float/2addr v1, v2

    add-float/2addr v0, v1

    float-to-double v0, v0

    invoke-static {v0, v1}, Ljava/lang/Math;->sqrt(D)D

    move-result-wide v0

    const-wide/high16 v2, 0x4014

    cmpg-double v0, v0, v2

    if-gez v0, :cond_3

    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->isClickable()Z

    move-result v0

    if-eqz v0, :cond_3

    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->performClick()Z

    goto/16 :goto_1

    :pswitch_4
    iget-boolean v1, p0, Lcom/xingbook/ui/overclass/HVScrollView;->k:Z

    if-eqz v1, :cond_3

    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->getChildCount()I

    move-result v1

    if-lez v1, :cond_3

    iput v6, p0, Lcom/xingbook/ui/overclass/HVScrollView;->r:I

    iput-boolean v0, p0, Lcom/xingbook/ui/overclass/HVScrollView;->k:Z

    iget-object v0, p0, Lcom/xingbook/ui/overclass/HVScrollView;->l:Landroid/view/VelocityTracker;

    if-eqz v0, :cond_3

    iget-object v0, p0, Lcom/xingbook/ui/overclass/HVScrollView;->l:Landroid/view/VelocityTracker;

    invoke-virtual {v0}, Landroid/view/VelocityTracker;->recycle()V

    iput-object v7, p0, Lcom/xingbook/ui/overclass/HVScrollView;->l:Landroid/view/VelocityTracker;

    goto/16 :goto_1

    :pswitch_5
    invoke-direct {p0, p1}, Lcom/xingbook/ui/overclass/HVScrollView;->a(Landroid/view/MotionEvent;)V

    goto/16 :goto_1

    nop

    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_1
        :pswitch_3
        :pswitch_2
        :pswitch_4
        :pswitch_0
        :pswitch_0
        :pswitch_5
    .end packed-switch
.end method

.method public requestChildFocus(Landroid/view/View;Landroid/view/View;)V
    .locals 1

    iget-boolean v0, p0, Lcom/xingbook/ui/overclass/HVScrollView;->f:Z

    if-nez v0, :cond_0

    iget-boolean v0, p0, Lcom/xingbook/ui/overclass/HVScrollView;->i:Z

    if-nez v0, :cond_1

    invoke-direct {p0, p2}, Lcom/xingbook/ui/overclass/HVScrollView;->c(Landroid/view/View;)V

    :cond_0
    :goto_0
    invoke-super {p0, p1, p2}, Landroid/widget/FrameLayout;->requestChildFocus(Landroid/view/View;Landroid/view/View;)V

    return-void

    :cond_1
    iput-object p2, p0, Lcom/xingbook/ui/overclass/HVScrollView;->j:Landroid/view/View;

    goto :goto_0
.end method

.method public requestChildRectangleOnScreen(Landroid/view/View;Landroid/graphics/Rect;Z)Z
    .locals 3

    invoke-virtual {p1}, Landroid/view/View;->getLeft()I

    move-result v0

    invoke-virtual {p1}, Landroid/view/View;->getScrollX()I

    move-result v1

    sub-int/2addr v0, v1

    invoke-virtual {p1}, Landroid/view/View;->getTop()I

    move-result v1

    invoke-virtual {p1}, Landroid/view/View;->getScrollY()I

    move-result v2

    sub-int/2addr v1, v2

    invoke-virtual {p2, v0, v1}, Landroid/graphics/Rect;->offset(II)V

    invoke-direct {p0, p2, p3}, Lcom/xingbook/ui/overclass/HVScrollView;->a(Landroid/graphics/Rect;Z)Z

    move-result v0

    return v0
.end method

.method public requestLayout()V
    .locals 1

    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/xingbook/ui/overclass/HVScrollView;->i:Z

    invoke-super {p0}, Landroid/widget/FrameLayout;->requestLayout()V

    return-void
.end method

.method public scrollTo(II)V
    .locals 4

    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->getChildCount()I

    move-result v0

    if-lez v0, :cond_1

    const/4 v0, 0x0

    invoke-virtual {p0, v0}, Lcom/xingbook/ui/overclass/HVScrollView;->getChildAt(I)Landroid/view/View;

    move-result-object v0

    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->getWidth()I

    move-result v1

    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->getPaddingRight()I

    move-result v2

    sub-int/2addr v1, v2

    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->getPaddingLeft()I

    move-result v2

    sub-int/2addr v1, v2

    invoke-virtual {v0}, Landroid/view/View;->getWidth()I

    move-result v2

    invoke-direct {p0, p1, v1, v2}, Lcom/xingbook/ui/overclass/HVScrollView;->c(III)I

    move-result v1

    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->getHeight()I

    move-result v2

    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->getPaddingBottom()I

    move-result v3

    sub-int/2addr v2, v3

    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->getPaddingTop()I

    move-result v3

    sub-int/2addr v2, v3

    invoke-virtual {v0}, Landroid/view/View;->getHeight()I

    move-result v0

    invoke-direct {p0, p2, v2, v0}, Lcom/xingbook/ui/overclass/HVScrollView;->c(III)I

    move-result v0

    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->getScrollX()I

    move-result v2

    if-ne v1, v2, :cond_0

    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->getScrollY()I

    move-result v2

    if-eq v0, v2, :cond_1

    :cond_0
    invoke-super {p0, v1, v0}, Landroid/widget/FrameLayout;->scrollTo(II)V

    :cond_1
    return-void
.end method

.method public setFillViewport(Z)V
    .locals 1

    iget-boolean v0, p0, Lcom/xingbook/ui/overclass/HVScrollView;->m:Z

    if-eq p1, v0, :cond_0

    iput-boolean p1, p0, Lcom/xingbook/ui/overclass/HVScrollView;->m:Z

    invoke-virtual {p0}, Lcom/xingbook/ui/overclass/HVScrollView;->requestLayout()V

    :cond_0
    return-void
.end method

.method public setFlingEnabled(Z)V
    .locals 0

    iput-boolean p1, p0, Lcom/xingbook/ui/overclass/HVScrollView;->s:Z

    return-void
.end method

.method public setSmoothScrollingEnabled(Z)V
    .locals 0

    iput-boolean p1, p0, Lcom/xingbook/ui/overclass/HVScrollView;->n:Z

    return-void
.end method
